//
//  TransferNotEnoughViewController.m
//  nonghubao
//
//  Created by 王 文彬 on 13-5-22.
//  Copyright (c) 2013年 Chongqing Nonghubao Co., Ltd. All rights reserved.
//


//  -业务逻辑细节说明-
//
//  @abstract      无逻辑，只是显示转账服务的时余额不足的文案

//  @discussion

//  @notes          


//  -类修改日志-
//  修改人   修改时间   针对版本
//  修改描述

#import "TransferNotEnoughViewController.h"
#import "Helper.h"
#import "RTLabel.h"

#define BOTTOM_BUTTON_HEIGHT _SYS_FRAME_HEIGHT - 20.0f - 44.0f - 44.0f
@interface TransferNotEnoughViewController ()

@end

@implementation TransferNotEnoughViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [self.navigationItem setTitle:_L(@"vc_title_065")];
    
	// Do any additional setup after loading the view.
    UIButton *backButton = [Helper buttonWithStyle:ButtonStyleNavigationReturn];
    [backButton addTarget:self action:@selector(backButtonEvent:) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem* leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:backButton];
    self.navigationItem.leftBarButtonItem = leftBarButtonItem;
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    //温馨提示
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(125.0f, 5.0f, 80.0f, 30.0f)];
    titleLabel.font = _SYS_FONT_005;
    titleLabel.text = _L(@"title_15");
    [self.view addSubview:titleLabel];
    
    //分割线
    UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, titleLabel.frame.origin.y + titleLabel.frame.size.height + 5.0f, 320.0f, 0.5f)];
    
    lineView.backgroundColor = [UIColor colorWithRed:219.0f/255.0f green:219.0f/255.0f blue:219.0f/255.0f alpha:1.0f];
    
    [self.view addSubview:lineView];
    
    //提示内容
    RTLabel *_contentLabel = [[RTLabel alloc] initWithFrame:CGRectMake(10.0f, lineView.frame.origin.y + lineView.frame.size.height + 10.0f, 300.0f, 160.0f)];
    [_contentLabel setFont:_SYS_FONT_005];
    
    _contentLabel.text = [NSString stringWithFormat:_L(@"tpl_24"), TRANSFER_MIN_LIMIT + PROCEDURE_FEE, TRANSFER_MIN_LIMIT];
    _contentLabel.lineSpacing = 10.0f;
    [self.view addSubview:_contentLabel];
    
    

}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


#pragma mark - 自定义事件

- (void)backButtonEvent:(id)sender
{
    [self.navigationController dismissModalViewControllerAnimated:YES];
}
@end
